package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.ItemInfoMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.ItemInfoService;
import com.the4man.framework.model.ItemInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("ItemInfoService")
public class ItemInfoServiceImpl extends AbstractService<ItemInfo> implements ItemInfoService {
    @Autowired
    private ItemInfoMapper itemInfoMapper;

    public ItemInfoServiceImpl() {
    }

    public Map autoAssignRoomByLevel(String levelId) {
        return this.itemInfoMapper.autoAssignRoomByLevel(levelId);
    }

    public List<ItemInfo> selectItemByRoom(String roomId) {
        return this.itemInfoMapper.selectItemByRoom(roomId);
    }
}
